Jockey Coding - Chapter 2: Choose your tools

programmingaihandbooktoolsarchitecture

With AI at the helm and actually coding with tools like Postgres, Redis, Rust and Svelte, it is important that we choose the correct tools that can maximise the AI’s potential. An important piece of terminology here is imperative vs declarative coding. Rather than thinking of them as binary concepts, we can think of them as a gradient.

Machine code is imperative to the CPU, it tells the CPU exactly what it needs to do, and assembly is declarative, as it’s more human readable and provides abstractions on top of the machine code. We are describing what we want to be achieved. But compared to C code, assembly is a lot more imperative and C provides a nice layer of abstraction on top. Similarly Python provides even more niceties and abstractions on top of C.

My experience coding with AI is that we want to speak English in as imperative a way as possible, “Use Postgres”, “use the observer pattern”, “create a base class here” to get the most reliable performance out of them. However, we want the tools that the AI is using to build with to be as declarative as possible.

So if we think about development like a sandwich and assume the human is a true expert. We have something like this:

  • Human: Source of truth, assumed to be correct
  • AI coding tool: transforming human English into code
  • Code: behaves predictably

Notice how in this sandwich, the most shaky layer is the AI. It could do a fantastic job compiling English into code, or it could totally mess it up. The more declarative the code or library, the easier it is for the ai to code and the less code the ai has to write. The more imperative the human is, the fewer assumptions the ai has to make to fill in the gaps.

We are trying to squish the AI layer to do as little work as possible for maximum reliability, predictability and performance.

TLDR: Give AI tools that are as easy to use as possible, with as little manual configuration/logic as possible. Give instructions to the AI in as much detail as possible. Let the horse walk on relatively flat land and guide it constantly along the way.

Yao Ke

I enjoy solving problems with creativity.

Navigation

Home Blog Projects

Connect

© 2025 Yao Ke. Built with SvelteKit.